
public class LongestCommonSubstring {

	/**
	 * Main method.
	 * 
	 * @param args The arguments.
	 */
	public static void main(String[] args) {

		LongestCommonSubstring test = new LongestCommonSubstring();
		
		String[] arr = test.getStrings("xmjyauz;mzjawxu");
		
		
		
	}
	
	/**
	 * Determines the two strings from the input.
	 * 
	 * @param the_strings The contents of the file.
	 * @return Array with the separated strings.
	 */
	private String[] getStrings(String the_strings) {
		
		StringBuilder sb = new StringBuilder();
		String[] ret_arr = new String[2];
		
		for(int i = 0 ; i < the_strings.length() ; i++){
			
			if(the_strings.charAt(i) == ';') {
				
				ret_arr[0] = sb.toString();
				sb = new StringBuilder();
				
			} else if (the_strings.charAt(i) >= 33 &&
					the_strings.charAt(i) <= 126){
				
				sb.append(the_strings.charAt(i));
				
			}
		
		}
		
		ret_arr[1] = sb.toString();
		
		return ret_arr;
		
	}
	
	private String getSubstring(String[] the_strings) {
		
		String longest_subsequence = "";
		
		int longest_string_index = 0;
		int other_string_index = 1;
		
		if(the_strings[0].length() < the_strings[1].length()) {
			
			longest_string_index = 1;
			other_string_index = 0;
			
		}
		
		for(int i = 0 ; i < the_strings[longest_string_index].length() 
				; i++) {
			
			
			
		}
		
	}

}
